Add CI and Publish workflows with GitHub Actions #209
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds support for running test suite using dockerized
monerod
andmonero-wallet-cli
Also this dockerized setup is used in GitHub Actions. Tests are ran upon any push onto
master
,feature/*
,bugfix/*
ordevelop
branches. Also against any PRs targetingmaster
branch.Example CI run https://github.com/mainnet-pat/monero-ts/actions/runs/8894726876/job/24423583889
To run tests locally once can run
USE_DOCKER=1 npm run test
.Also publishing to NPM is now part of GH workflows. It requires following setup first:
profile
,access tokens
,create new classic token
automation
, clickgenerate
secrets and variables
,actions
, on tabsecrets
clickNew repository secret
, set name toNPM_TOKEN
, paste the npm token from previous stepPublish
Github action go to this github repo, click onReleases
,Draft new release
,Choose tag
, enter tag name, clickcreate new tag on publish
, enter release title and notes, click publish release, wait for triggeredPublish
action to complete.Example Publish run https://github.com/mainnet-pat/monero-ts/actions/runs/8894682153/job/24423445448